package com.tqsa.common.convention.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangjiaqing
 * @version 1.0
 * @date 2024/3/26 13:37
 * @description: TODO
 */
@Data
@NoArgsConstructor
public abstract class AbstractBaseQueryParams implements Serializable {

    private static final long serialVersionUID = 1L;

    // 当前页码
    private Integer pageNum = 1;
    // 分页条数
    private Integer pageSize = 20;
    // 排序
    private List<OrderItem> orderList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class OrderItem{
        private String column;
        private boolean asc;

    }
}
